/**
 * 
 */
package com.csc.bankingsystem.core.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.csc.bankingsystem.core.dao.UserInfoRoleDAO;
import com.csc.bankingsystem.core.entity.UserInfoRole;
import com.csc.bankingsystem.core.service.UserInfoRoleService;


/**
 * Implement all service operation of UserInfoRoleService
 * @author angelkid
 *
 */
@Service("userInfoRoleService")
@Transactional
public class UserInfoRoleServiceImpl implements UserInfoRoleService {

	@Autowired
	UserInfoRoleDAO userInfoRoleDAO;
	
	public UserInfoRole find(long id) {
		return userInfoRoleDAO.find(id);
	}

	public List<UserInfoRole> findAll() {
		return userInfoRoleDAO.findAll();
	}

	public Long countAll() {
		return userInfoRoleDAO.countAll();
	}

	public Long save(UserInfoRole userInfoRole){
		return userInfoRoleDAO.save(userInfoRole);
	}

	public void update(UserInfoRole userInfoRole){
		userInfoRoleDAO.update(userInfoRole);
	}

	public void delete(UserInfoRole userInfoRole) {
		userInfoRoleDAO.delete(userInfoRole);
	}
}
